package com.example.myapplication.ui.income;

import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;

import com.example.myapplication.entity.Income;

import java.util.List;

public class MyAdapter extends BaseAdapter {


    private LayoutInflater inflater;
    private List<Income> incomeList;

    public MyAdapter(Context context, List<Income> incomes) {
        this.inflater = LayoutInflater.from(context);
        this.incomeList = incomes;
    }

    @Override
    public int getCount() {
        return incomeList.size();
    }

    @Override
    public Object getItem(int position) {
        return incomeList.get(position);
    }

    @Override
    public long getItemId(int position) {
        return position;
    }

    @Override
    public View getView(int position, View convertView, ViewGroup parent) {
        return null;
    }
}
